package com.freesky.biz.activity.mapper;

import com.freesky.biz.activity.domain.TContract;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractMapper {

    public TContract get(String id);

    public List<TContract> findList(TContract entity);

    public TContract selectSummaryData(TContract entity);

    public int insert(TContract entity);

    public int update(TContract entity);

    public int selectProjectCount(@Param("contractId") String contractId);

    public TContract selectContractByNo(@Param("contractNo") String contractNo);

    public TContract selectContractByName(@Param("contractName") String contractName);

    /**
     * 批量删除参数信息
     *
     * @param ids 需要删除的参数ID
     * @return 结果
     */
    public int deleteByIds(String[] ids);
}
